package com.cqw.commontest.mongodb.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * @Author: caoqingwen
 * @CreateTime: 2022-02-16 16:42
 * @Description: 消费者
 */
@Document(collection = "customer")
public class Customer {


    @Id
    private String id;

    private String name;

    private int number;

    private Date addTime;

    private List<String> likeIdList;

    private List<CustomerTag> tagList;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public List<String> getLikeIdList() {
        return likeIdList;
    }

    public void setLikeIdList(List<String> likeIdList) {
        this.likeIdList = likeIdList;
    }

    public List<CustomerTag> getTagList() {
        return tagList;
    }

    public void setTagList(List<CustomerTag> tagList) {
        this.tagList = tagList;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", addTime=" + addTime +
                ", likeIdList=" + likeIdList +
                ", tagList=" + tagList +
                '}';
    }
}
